home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / NEWSOFT / AUGUST / FREEDIAL / !FDInstall / FreeDial / Stacks / AcornDCI4 / !ShutDown < prev    next >
Text File  |  1996-04-12  |  1KB  |  52 lines

  1. |
  2. | Acorn DCI4 Internet TCP/IP Stack ShutDown
  3. |
  4. | Kills the stack and any loaded driver
  5.  
  6. |
  7. | Take down the loopback driver
  8. |
  9. ifconfig lo0 down
  10.  
  11. |
  12. | Kill SLIPdriver, if loaded
  13. |
  14. Set SLIPdriverLoaded yes
  15. RMEnsure SLIPdriver 2.00 Set SLIPdriverLoaded no
  16. If "<SLIPdriverLoaded>"="yes" Then RMKill SLIPdriver
  17. Unset SLIPdriverLoaded
  18.  
  19. |
  20. | Kill PPPdriver, if loaded
  21. |
  22. Set PPPdriverLoaded yes
  23. RMEnsure PPPdriver 2.00 Set PPPdriverLoaded no
  24. If "<PPPdriverLoaded>"="yes" Then pppkill 0
  25. If "<PPPdriverLoaded>"="yes" Then RMKill PPPdriver
  26. Unset PPPdriverLoaded
  27.  
  28. |
  29. | Kill the DNS resolver
  30. |
  31. Set INetDBLoaded yes
  32. RMEnsure InetDB 0 Set INetDBLoaded no
  33. If "<INetDBLoaded>"="yes" Then RMKill InetDB
  34. Unset INetDBLoaded
  35.  
  36. |
  37. | Kill the stack
  38. |
  39. Set InternetLoaded yes
  40. RMEnsure Internet 4.00 Set InternetLoaded no
  41. If "<InternetLoaded>"="yes" then RMKill Internet
  42. If "<InternetLoaded>"="yes" then RMKill MBufManager
  43. If "<InternetLoaded>"="yes" then RMKill AUNMsgs
  44. Unset InternetLoaded
  45.  
  46. If "<Inet$Timer>"<>"" Then Echo <Sys$Date> <Sys$Year> <Sys$Time>, ShutDown after <Inet$Timer> { >> <Inet$CallLog> }
  47. If "<Inet$Timer>"<>"" Then Filer_Run <Inet$CallLog>
  48. If "<Inet$Timer>"<>"" Then <FreeDial$Dir>.UnsetCV Inet$Timer
  49. If "<Inet$StackLoaded>"<>"" Then Unset Inet$StackLoaded
  50.  
  51. Pin <Obey$Dir>.!ShutDown 20000 20000
  52.